package com.kate.mall.bff.wx.controller;
import com.kate.mall.bff.wx.service.HomeIndexService;
import com.kate.mall.common.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 新梦想.陈超
 * @version 2021.2
 * @Description: {TODO}
 * @date 2023/3/6 上午11:27
 */

@RestController
@RequestMapping("/wx/home")
@Slf4j
public class HomeIndexController {
    @Resource
    private HomeIndexService homeIndexService;
    @GetMapping("/index")
    public R index(){
        log.info("请求wx/home/index接口成功....");
        //1.参数处理、登录校验
        //2.调用service
        R result = homeIndexService.index2();
        return result;
    }
}
